package com.szcinda.service.dto.user;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.szcinda.service.dto.organization.OrganizationTree;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class UserIdentity implements Serializable {
    private String id;
    private String account;
    @JsonIgnore
    private String password;  //@JSONField(serialize = false)
    private String token;
    private String fullName;
    private String organizationId;
    private String permissions;
    private String canCheckData;
    private boolean admin;
    private boolean notice;
    private List<OrganizationTree> organizationTree;

    public UserIdentity(String id, String account, String password, String fullName, String orgId, String permissions, String canCheckData, boolean notice) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.fullName = fullName;
        this.organizationId = orgId;
        this.permissions = permissions;
        this.canCheckData = canCheckData;
        this.notice = notice;
    }
}
